]> dgit.raspbian.org Git - gnome-shell.git/commit
rfkill: Use promise to initialize proxy
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 18 Jul 2022 18:44:28 +0000 (20:44 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 19 Jul 2022 13:27:39 +0000 (13:27 +0000)
commitbb043bb761c69724db29f0375099b26c40e165bf
treed089fb184ebb450d3dfab014af2ffbf54b8a9878
parent762b4c20664880af30149e7f6a097f68c27adf83
rfkill: Use promise to initialize proxy

There's no good reason for waiting for the proxy to be initialized
to connect signals. In fact, connecting the signal beforehand
ensures that the handler is in place when the proxy fetches the
properties, so we don't have to call the handler explicitly.

That in turn will allow us in a follow-up to rely on the signal
parameters to only process changed properties.

To achieve that by constructing the proxy manually, and then
initialize it asynchronously in a Promise.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2385>
js/ui/status/rfkill.js